package com.xb.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xb.model.domain.DistinctUsersInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


@Mapper
public interface DistinctUsersInfoMapper extends BaseMapper<DistinctUsersInfo> {

    @Select("SELECT COUNT(*) FROM distinct_users_info WHERE business_email = #{businessEmail} AND first_name = #{firstName}")
    int checkUserMatch(String businessEmail, String firstName);
    List<DistinctUsersInfo> selectList(Map<String, Object> params);
}

